<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>


<f:subview id="commission">
	<a4j:loadBundle var="msg" basename="messages_#{localManager.local}"></a4j:loadBundle>
	<h:form
		style="overflow:auto ; margin-top:1cm; margin-left:1cm; margin-right:1cm ; margin-bottom:1cm">

		<a4j:region>
			<h:outputText value="#{orderCourierManager.t }"></h:outputText>
			<rich:tabPanel switchType="client" width="400" height="20">
				<rich:tab id="tab1" label="#{msg['klient.zamowKurierTab1']}">

				</rich:tab>
				<rich:tab id="tab2" label="Zamów pod ">

				</rich:tab>

			</rich:tabPanel>
			<rich:messages id="mymessages" globalOnly="true" style="color:red" />
		</a4j:region>
	</h:form>

	<rich:modalPanel id="editMP" domElementAttachment="parent"
		autosized="true" width="300" height="300">
		<f:facet name="header">
			<h:outputText id="editLabel" value="Edycja"></h:outputText>
		</f:facet>
		<f:facet name="controls">
			<h:panelGroup>
				<h:graphicImage value="/images/close2.png" styleClass="hidelink"
					id="hidelink" />
				<rich:componentControl for="editMP" attachTo="hidelink"
					operation="hide" event="onclick" />
			</h:panelGroup>
		</f:facet>
		<h:form>
			<h:panelGrid columns="2">
				<a4j:outputPanel ajaxRendered="true">
					<h:outputLabel for="imie" value="nadawca:"></h:outputLabel>
					<h:inputText id="imie" value="#{TaskListBean.editedData.nadawca}"
						immediate="true" />
					<a4j:commandButton styleClass="RFbutton" value="Zapisz" action="#{TaskListBean.editData}"
						reRender="imieOutput, taskList"
						oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editMP')}.hide();}">
					</a4j:commandButton>
					<a4j:commandButton styleClass="RFbutton" value="Cancel"
						onclick="#{rich:component('editMP')}.hide(); return false;" />
				<rich:messages id="mymessages" globalOnly="true" style="color:red" />
				</a4j:outputPanel>
			</h:panelGrid>
		</h:form>

	</rich:modalPanel>



</f:subview>
